package entidades;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import javax.persistence.Version;

import enumeraciones.TecnicaPeliculaLagrimalEnum;
import enumeraciones.TecnicaPoloPosteriorEnum;
import enumeraciones.TincionCornealEnum;
import enumeraciones.TipoGlandulaEnum;
import enumeraciones.TonometroEnum;
import enumeraciones.VanHerickEnum;


/**
 * The persistent class for the t_microscopia database table.
 * 
 */
@Entity
@Table(name="t_microscopia")
public class TMicroscopia  implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="T_MICROSCOPIA_IDMICROSCOPIA_GENERATOR", sequenceName="T_MICROSCOPIA_ID_MICROSCOPIA_SEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="T_MICROSCOPIA_IDMICROSCOPIA_GENERATOR")
	@Column(name="id_microscopia")
	private Integer idMicroscopia;

	@Column(name="cam_od")
	private String camOd;

	@Column(name="cam_oi")
	private String camOi;

	@Column(name="con_bl_od")
	private String conBlOd;

	@Column(name="con_bl_oi")
	private String conBlOi;

	@Column(name="con_fa_od")
	private String conFaOd;

	@Column(name="con_fa_oi")
	private String conFaOi;

	@Column(name="cor_od")
	private String corOd;

	@Column(name="cor_oi")
	private String corOi;

	@Column(name="cri_od")
	private String criOd;

	@Column(name="cri_oi")
	private String criOi;

	@Column(name="des_hora")
	private String desHora;

	@Transient
	private Date horaMostrar;
	
	@Column(name="des_tano")
	@Enumerated (value = EnumType.STRING)
	private TonometroEnum desTano;

	@Column(name="for_od")
	private String forOd;

	@Column(name="for_oi")
	private String forOi;

	@Column(name="glan_tipo")
	@Enumerated (value = EnumType.STRING)
	private TipoGlandulaEnum glanTipo;

	@Column(name="glan_tipo_od")
	private String glanTipoOd;

	@Column(name="glan_tipo_od_sec")
	private String glanTipoOdSec;

	@Column(name="glan_tipo_oi")
	private String glanTipoOi;

	@Column(name="glan_tipo_oi_sec")
	private String glanTipoOiSec;

	@Column(name="glan_tipo_sec")
	@Enumerated (value = EnumType.STRING)
	private TipoGlandulaEnum glanTipoSec;

	@Column(name="is_normal")
	private Boolean isNormal;

	@Column(name="par_od")
	private String parOd;

	@Column(name="par_oi")
	private String parOi;

	@Column(name="pel_tec")
	@Enumerated (value = EnumType.STRING)
	private TecnicaPeliculaLagrimalEnum pelTec;

	@Column(name="pel_tec_od")
	private String pelTecOd;

	@Column(name="pel_tec_od_sec")
	private String pelTecOdSec;

	@Column(name="pel_tec_oi")
	private String pelTecOi;

	@Column(name="pel_tec_oi_sec")
	private String pelTecOiSec;

	@Column(name="pel_tec_sec")
	@Enumerated (value = EnumType.STRING)
	private TecnicaPeliculaLagrimalEnum pelTecSec;

	@Column(name="pest_od")
	private String pestOd;

	@Column(name="pest_oi")
	private String pestOi;

	@Column(name="pol_tec")
	@Enumerated (value = EnumType.STRING)
	private TecnicaPoloPosteriorEnum polTec;

	@Column(name="pol_tec_od")
	private String polTecOd;

	@Column(name="pol_tec_oi")
	private String polTecOi;

	@Column(name="tan_od")
	private String tanOd;

	@Column(name="tan_oi")
	private String tanOi;

	@Column(name="tin_cor")
	@Enumerated (value = EnumType.STRING)
	private TincionCornealEnum tinCor;

	@Column(name="tin_cor_od")
	private String tinCorOd;

	@Column(name="tin_cor_oi")
	private String tinCorOi;

	@Column(name="tin_od_des")
	private String tinOdDes;

	@Column(name="tin_od_tec")
	@Enumerated (value = EnumType.STRING)
	private TincionCornealEnum tinOdTec;

	@Column(name="tin_oi_des")
	private String tinOiDes;

	@Column(name="tin_oi_tec")
	@Enumerated (value = EnumType.STRING)
	private TincionCornealEnum tinOiTec;
	
	@Column(name="vanherick_od")
	@Enumerated (value = EnumType.STRING)
	private VanHerickEnum vanherickOd;
	
	@Column(name="vanherick_oi")
	@Enumerated (value = EnumType.STRING)
	private VanHerickEnum vanherickOi;
	
	@Column(name="img_od")
	private String imgOd;
	
	@Column(name="img_oi")
	private String imgOi;
	
	@Column(name="des_obs")
	private String desOb;

	@Column(name="user_creacion")
	private String userCreacion;

	@Column(name="user_modificacion")
	private String userModificacion;

	@Temporal( TemporalType.TIMESTAMP)
	@Column(name="fecha_creacion")
	private Date fechaCreacion;
	
	@Temporal( TemporalType.TIMESTAMP)
	@Column(name="fecha_modificacion")
	private Date fechaModificacion;
	
	//bi-directional many-to-one association to TControl
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="id_control")
	private TControl TControl;

	@Version
	private Integer version;
	
    public TMicroscopia() {
    }

	public Integer getIdMicroscopia() {
		return this.idMicroscopia;
	}

	public void setIdMicroscopia(Integer idMicroscopia) {
		this.idMicroscopia = idMicroscopia;
	}

	public TControl getTControl() {
		return TControl;
	}

	public void setTControl(TControl tControl) {
		TControl = tControl;
	}

	public String getCamOd() {
		return camOd;
	}

	public void setCamOd(String camOd) {
		this.camOd = camOd;
	}

	public String getCamOi() {
		return camOi;
	}

	public void setCamOi(String camOi) {
		this.camOi = camOi;
	}

	public String getConBlOd() {
		return conBlOd;
	}

	public void setConBlOd(String conBlOd) {
		this.conBlOd = conBlOd;
	}

	public String getConBlOi() {
		return conBlOi;
	}

	public void setConBlOi(String conBlOi) {
		this.conBlOi = conBlOi;
	}

	public String getConFaOd() {
		return conFaOd;
	}

	public void setConFaOd(String conFaOd) {
		this.conFaOd = conFaOd;
	}

	public String getConFaOi() {
		return conFaOi;
	}

	public void setConFaOi(String conFaOi) {
		this.conFaOi = conFaOi;
	}

	public String getCorOd() {
		return corOd;
	}

	public void setCorOd(String corOd) {
		this.corOd = corOd;
	}

	public String getCorOi() {
		return corOi;
	}

	public void setCorOi(String corOi) {
		this.corOi = corOi;
	}

	public String getCriOd() {
		return criOd;
	}

	public void setCriOd(String criOd) {
		this.criOd = criOd;
	}

	public String getCriOi() {
		return criOi;
	}

	public void setCriOi(String criOi) {
		this.criOi = criOi;
	}

	public String getForOd() {
		return forOd;
	}

	public void setForOd(String forOd) {
		this.forOd = forOd;
	}

	public String getForOi() {
		return forOi;
	}

	public void setForOi(String forOi) {
		this.forOi = forOi;
	}

	public String getGlanTipoOd() {
		return glanTipoOd;
	}

	public void setGlanTipoOd(String glanTipoOd) {
		this.glanTipoOd = glanTipoOd;
	}

	public String getGlanTipoOdSec() {
		return glanTipoOdSec;
	}

	public void setGlanTipoOdSec(String glanTipoOdSec) {
		this.glanTipoOdSec = glanTipoOdSec;
	}

	public String getGlanTipoOi() {
		return glanTipoOi;
	}

	public void setGlanTipoOi(String glanTipoOi) {
		this.glanTipoOi = glanTipoOi;
	}

	public String getGlanTipoOiSec() {
		return glanTipoOiSec;
	}

	public void setGlanTipoOiSec(String glanTipoOiSec) {
		this.glanTipoOiSec = glanTipoOiSec;
	}

	public Boolean getIsNormal() {
		return isNormal;
	}

	public void setIsNormal(Boolean isNormal) {
		this.isNormal = isNormal;
	}

	public String getParOd() {
		return parOd;
	}

	public void setParOd(String parOd) {
		this.parOd = parOd;
	}

	public String getParOi() {
		return parOi;
	}

	public void setParOi(String parOi) {
		this.parOi = parOi;
	}

	public String getPelTecOd() {
		return pelTecOd;
	}

	public void setPelTecOd(String pelTecOd) {
		this.pelTecOd = pelTecOd;
	}

	public String getPelTecOdSec() {
		return pelTecOdSec;
	}

	public void setPelTecOdSec(String pelTecOdSec) {
		this.pelTecOdSec = pelTecOdSec;
	}

	public String getPelTecOi() {
		return pelTecOi;
	}

	public void setPelTecOi(String pelTecOi) {
		this.pelTecOi = pelTecOi;
	}

	public String getPelTecOiSec() {
		return pelTecOiSec;
	}

	public void setPelTecOiSec(String pelTecOiSec) {
		this.pelTecOiSec = pelTecOiSec;
	}

	public String getPestOd() {
		return pestOd;
	}

	public void setPestOd(String pestOd) {
		this.pestOd = pestOd;
	}

	public String getPestOi() {
		return pestOi;
	}

	public void setPestOi(String pestOi) {
		this.pestOi = pestOi;
	}

	public String getPolTecOd() {
		return polTecOd;
	}

	public void setPolTecOd(String polTecOd) {
		this.polTecOd = polTecOd;
	}

	public String getPolTecOi() {
		return polTecOi;
	}

	public void setPolTecOi(String polTecOi) {
		this.polTecOi = polTecOi;
	}

	public String getTanOd() {
		return tanOd;
	}

	public void setTanOd(String tanOd) {
		this.tanOd = tanOd;
	}

	public String getTanOi() {
		return tanOi;
	}

	public void setTanOi(String tanOi) {
		this.tanOi = tanOi;
	}

	public String getTinCorOd() {
		return tinCorOd;
	}

	public void setTinCorOd(String tinCorOd) {
		this.tinCorOd = tinCorOd;
	}

	public String getTinCorOi() {
		return tinCorOi;
	}

	public void setTinCorOi(String tinCorOi) {
		this.tinCorOi = tinCorOi;
	}

	public String getTinOdDes() {
		return tinOdDes;
	}

	public void setTinOdDes(String tinOdDes) {
		this.tinOdDes = tinOdDes;
	}

	public String getTinOiDes() {
		return tinOiDes;
	}

	public void setTinOiDes(String tinOiDes) {
		this.tinOiDes = tinOiDes;
	}

	public String getDesOb() {
		return desOb;
	}

	public void setDesOb(String desOb) {
		this.desOb = desOb;
	}

	public TincionCornealEnum getTinCor() {
		return tinCor;
	}

	public void setTinCor(TincionCornealEnum tinCor) {
		this.tinCor = tinCor;
	}

	public TonometroEnum getDesTano() {
		return desTano;
	}

	public void setDesTano(TonometroEnum desTano) {
		this.desTano = desTano;
	}

	public TipoGlandulaEnum getGlanTipo() {
		return glanTipo;
	}

	public void setGlanTipo(TipoGlandulaEnum glanTipo) {
		this.glanTipo = glanTipo;
	}

	public TipoGlandulaEnum getGlanTipoSec() {
		return glanTipoSec;
	}

	public void setGlanTipoSec(TipoGlandulaEnum glanTipoSec) {
		this.glanTipoSec = glanTipoSec;
	}

	public TecnicaPeliculaLagrimalEnum getPelTec() {
		return pelTec;
	}

	public void setPelTec(TecnicaPeliculaLagrimalEnum pelTec) {
		this.pelTec = pelTec;
	}

	public TecnicaPeliculaLagrimalEnum getPelTecSec() {
		return pelTecSec;
	}

	public void setPelTecSec(TecnicaPeliculaLagrimalEnum pelTecSec) {
		this.pelTecSec = pelTecSec;
	}

	public TecnicaPoloPosteriorEnum getPolTec() {
		return polTec;
	}

	public void setPolTec(TecnicaPoloPosteriorEnum polTec) {
		this.polTec = polTec;
	}

	public TincionCornealEnum getTinOdTec() {
		return tinOdTec;
	}

	public void setTinOdTec(TincionCornealEnum tinOdTec) {
		this.tinOdTec = tinOdTec;
	}

	public TincionCornealEnum getTinOiTec() {
		return tinOiTec;
	}

	public void setTinOiTec(TincionCornealEnum tinOiTec) {
		this.tinOiTec = tinOiTec;
	}

	public String getDesHora() {
		return desHora;
	}

	public void setDesHora(String desHora) {
		this.desHora = desHora;
	}

	public Date getHoraMostrar() {
		return horaMostrar;
	}

	public void setHoraMostrar(Date horaMostrar) {
		this.horaMostrar = horaMostrar;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public VanHerickEnum getVanherickOd() {
		return vanherickOd;
	}

	public void setVanherickOd(VanHerickEnum vanherickOd) {
		this.vanherickOd = vanherickOd;
	}

	public VanHerickEnum getVanherickOi() {
		return vanherickOi;
	}

	public void setVanherickOi(VanHerickEnum vanherickOi) {
		this.vanherickOi = vanherickOi;
	}

	public String getImgOd() {
		return imgOd;
	}

	public void setImgOd(String imgOd) {
		this.imgOd = imgOd;
	}

	public String getImgOi() {
		return imgOi;
	}

	public void setImgOi(String imgOi) {
		this.imgOi = imgOi;
	}

	public String getUserCreacion() {
		return userCreacion;
	}

	public void setUserCreacion(String userCreacion) {
		this.userCreacion = userCreacion;
	}

	public String getUserModificacion() {
		return userModificacion;
	}

	public void setUserModificacion(String userModificacion) {
		this.userModificacion = userModificacion;
	}

	public Date getFechaCreacion() {
		return fechaCreacion;
	}

	public void setFechaCreacion(Date fechaCreacion) {
		this.fechaCreacion = fechaCreacion;
	}

	public Date getFechaModificacion() {
		return fechaModificacion;
	}

	public void setFechaModificacion(Date fechaModificacion) {
		this.fechaModificacion = fechaModificacion;
	}

	
}